package com.chorye.manualtransactional.controller;

import com.chorye.manualtransactional.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author Chorye
 * @since 2019-06-14
 */
@RestController
@RequestMapping("/student")
public class StudentController {

    /**
     * 服务层注入
     */
    @Autowired
    public StudentService studentService;

    @PostMapping("/manualOne")
    public void manualOne() {
        studentService.manualOne();
    }

    @PostMapping("/manualTwo")
    public void manualTwo() {
        studentService.manualTwo();
    }

    @PostMapping("/manualThree")
    public void manualThree() {
        studentService.manualThree();
    }

    @PostMapping("/manualFour")
    public void manualFour() {
        studentService.manualFour();
    }

    @PostMapping("/manualFive")
    public void manualFive() {
        studentService.manualFive();
    }

    @PostMapping("/manualSix")
    public void manualSix() {
        studentService.manualSix();
    }

    @PostMapping("/manualSeven")
    public void manualSeven() {
        studentService.manualSeven();
    }

    @PostMapping("/manualEight")
    public void manualEight() {
        studentService.manualEight();
    }

    @PostMapping("/manualNine")
    public void manualNine() {
        studentService.manualNine();
    }

    @PostMapping("/manualZero")
    public void manualZero() {
        studentService.manualZero();
    }

}